@layout("/common/_container_class.html"){
<div class="layui-fluid" id="editClass">
    <div class="layui-card">
        <div class="layui-card-body" style="overflow: scroll">
            <div class="layui-carousel" id="stepForm" lay-filter="stepForm" style="margin: 0 auto;">
                <div id="updateClass_class_edit">

                    <input type="hidden" id="classIds" value="${classIds}"/>
                    <input type="hidden" id="teacherMap" value='${subjectTeacherMap}'>
                    <form class="layui-form" lay-filter="text1" style="margin: 0 auto;max-width: 500px;padding-top: 10px;">
                        <input type="hidden" id="classId" name="classId" value="${ptClass.id }"/>
                        <input type="hidden" id="orgId" name="orgId" value="${ptClass.orgId }"/>
                        <input type="hidden" id="phaseId" name="phaseId" value="${ptClass.phaseId }"/>
                        <input type="hidden" id="schoolYear" name="schoolYear" value="${schoolYear+1}"/>
                        <#input id="name" style=" width: 345px;margin-bottom: 16px;" name="班级名称" value="${ptClass.name}"  disabled="disabled"/>
                        @for(subjectTeacher in subjectTeacherList){
                        <div class="form-group">
                            <label class="col-sm-3 control-label">${subjectTeacher.subjectName}</label>
                            <div class="col-sm-9 initTeacher">
                                <input class="form-control" name="classUserList[${subjectTeacherLP.index }].subjectId" value="${subjectTeacher.subjectId}" type="hidden"/>
                                <select class="form-control" id="queryDevice-${subjectTeacher.subjectId}" name="classUserList[${subjectTeacherLP.index }].userId"  lay-search >
                                    <option value=""></option>
                                    @if(tool.isNotEmpty(subjectTeacher.teacherList)){
                                    @for(userVo in subjectTeacher.teacherList){
                                    @if(tool.isNotEmpty(subjectTeacherMap[subjectTeacher.subjectId])){
                                    <option value="${userVo.userId}"  ${subjectTeacherMap[subjectTeacher.subjectId].id==userVo.userId?'selected':""}>${userVo.userName}</option>
                                    @}else{
                                    <option value="${userVo.userId}">${userVo.userName}</option>
                                    @}
                                    @}
                                    @}
                                </select>
                            </div>
                            <div class="hr-line-dashed1" style="    margin-top: 11%;"></div>
                        </div>

                        @}
                        <div class="hr-line-dashed1" style="    margin-top: 6%;"></div>
                        <div class="layui-form-item">
                            <div class="layui-input-block" style="margin-left: 181px">
                                <button type="button" class="layui-btn threePre" id="threestepPre"
                                        data-id="${preClassInfo.id}">${preClassInfo.id==null?'上一步':'上一个班级'}
                                </button>
                                <button class="layui-btn" lay-submit lay-filter="formStep3" id="threestepNext"
                                        data-id="${nextClassInfo.id}">
                                    ${nextClassInfo.id==null?'下一步':'下一个班级'}
                                </button>
                            </div>
                        </div>
                    </form>
</div>
</div>
</div>
</div>
</div>
<script src="${ctxPath}/static/modular/system/ptClass/classUpdate.js"></script>
<style>
    .wrapper-content {
        padding: 4px;
    }
</style>
@}
